.class public Lcom/estrongs/android/pop/app/unlock/b;
.super Landroid/widget/LinearLayout;
.source "UnLockCardView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/unlock/b$c;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/pop/app/unlock/RoundedImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Ljava/lang/String;

.field public f:Lcom/estrongs/android/pop/app/unlock/b$c;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 2
    iput-object p2, p0, Lcom/estrongs/android/pop/app/unlock/b;->e:Ljava/lang/String;

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/unlock/b;->a()V

    return-void
.end method

.method private a()V
    .locals 6

    .line 31
    invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0358

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f090718

    .line 32
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const v2, 0x7f090d32

    .line 33
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/pop/app/unlock/RoundedImageView;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->a:Lcom/estrongs/android/pop/app/unlock/RoundedImageView;

    const v2, 0x7f090d36

    .line 34
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->b:Landroid/widget/TextView;

    const v2, 0x7f090d35

    .line 35
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->c:Landroid/widget/TextView;

    const v2, 0x7f090d34

    .line 36
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->d:Landroid/widget/TextView;

    .line 37
    iget-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    const v3, 0x7f06032f

    const v4, 0x7f060330

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->e:Ljava/lang/String;

    const-string v5, "home"

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 38
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    const v5, 0x7f0800f5

    invoke-virtual {v2, v5}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 39
    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->b:Landroid/widget/TextView;

    .line 40
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    invoke-virtual {v2, v4}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    .line 41
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 42
    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->c:Landroid/widget/TextView;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    :cond_0
    const v2, 0x7f08011f

    .line 43
    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundResource(I)V

    .line 44
    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->b:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 45
    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 46
    :goto_0
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method


# virtual methods
.method public a(Les/k00;)V
    .locals 7

    .line 1
    invoke-virtual {p1}, Les/l00;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/app/unlock/g;->a(Ljava/lang/String;)Lcom/estrongs/android/pop/app/unlock/info/InfoUnlockCard;

    move-result-object v0

    if-eqz v0, :cond_7

    .line 2
    iget-object v1, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->title:Ljava/lang/String;

    .line 3
    iget v2, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->iconId:I

    .line 4
    iget-object v3, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->msg:Ljava/lang/String;

    .line 5
    iget-object v4, v0, Lcom/estrongs/android/pop/app/unlock/info/InfoUnlockCard;->result:Ljava/lang/String;

    .line 6
    iget-object v0, v0, Lcom/estrongs/android/pop/app/scene/info/show/InfoShowScene;->btn:Ljava/lang/String;

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/app/unlock/h;->d()Lcom/estrongs/android/pop/app/unlock/h;

    move-result-object v5

    invoke-virtual {v5}, Lcom/estrongs/android/pop/app/unlock/h;->a()Lcom/estrongs/android/pop/app/unlock/d;

    move-result-object v5

    invoke-virtual {p1}, Les/l00;->a()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/estrongs/android/pop/app/unlock/d;->e(Ljava/lang/String;)Z

    move-result v5

    if-lez v2, :cond_0

    .line 8
    iget-object v6, p0, Lcom/estrongs/android/pop/app/unlock/b;->a:Lcom/estrongs/android/pop/app/unlock/RoundedImageView;

    invoke-virtual {v6, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 9
    :cond_0
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/pop/app/unlock/b;->b:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    if-nez v5, :cond_5

    .line 11
    invoke-virtual {p1}, Les/l00;->d()Z

    move-result v1

    if-nez v1, :cond_2

    goto :goto_0

    .line 12
    :cond_2
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 13
    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 14
    :cond_3
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 16
    :cond_4
    new-instance v0, Lcom/estrongs/android/pop/app/unlock/h$b;

    invoke-direct {v0}, Lcom/estrongs/android/pop/app/unlock/h$b;-><init>()V

    .line 17
    invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/unlock/h$b;->a(Landroid/content/Context;)Lcom/estrongs/android/pop/app/unlock/h$b;

    .line 18
    invoke-virtual {p1}, Les/l00;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/unlock/h$b;->a(Ljava/lang/String;)Lcom/estrongs/android/pop/app/unlock/h$b;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/unlock/b;->e:Ljava/lang/String;

    .line 19
    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/unlock/h$b;->b(Ljava/lang/String;)Lcom/estrongs/android/pop/app/unlock/h$b;

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/String;

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/estrongs/android/pop/app/unlock/b;->e:Ljava/lang/String;

    aput-object v3, v1, v2

    const/4 v2, 0x1

    .line 20
    invoke-virtual {p1}, Les/l00;->a()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v1}, Lcom/estrongs/android/statistics/TraceRoute;->create([Ljava/lang/String;)Lcom/estrongs/android/statistics/TraceRoute;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/unlock/h$b;->a(Lcom/estrongs/android/statistics/TraceRoute;)Lcom/estrongs/android/pop/app/unlock/h$b;

    new-instance v1, Lcom/estrongs/android/pop/app/unlock/b$b;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/android/pop/app/unlock/b$b;-><init>(Lcom/estrongs/android/pop/app/unlock/b;Les/k00;)V

    .line 21
    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/unlock/h$b;->a(Ljava/lang/Object;)Lcom/estrongs/android/pop/app/unlock/h$b;

    .line 22
    invoke-static {}, Lcom/estrongs/android/pop/app/unlock/h;->d()Lcom/estrongs/android/pop/app/unlock/h;

    move-result-object p1

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/app/unlock/h;->a(Lcom/estrongs/android/pop/app/unlock/h$b;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/View$OnClickListener;

    invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_1

    .line 23
    :cond_5
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/app/unlock/h;->d()Lcom/estrongs/android/pop/app/unlock/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/unlock/h;->a()Lcom/estrongs/android/pop/app/unlock/d;

    move-result-object v0

    invoke-virtual {p1}, Les/l00;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/app/unlock/d;->i(Ljava/lang/String;)V

    .line 24
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/pop/app/unlock/b;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 26
    :cond_6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/unlock/b;->d:Landroid/widget/TextView;

    const v1, 0x7f110b12

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 27
    new-instance v0, Lcom/estrongs/android/pop/app/unlock/b$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/app/unlock/b$a;-><init>(Lcom/estrongs/android/pop/app/unlock/b;Les/k00;)V

    invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 28
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "unlockedcard_show"

    const-string v1, "show"

    .line 29
    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 30
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_7
    :goto_1
    return-void
.end method
